//
//  AppDelegate.m
//  CaptureDemo
//
//  Created by 苏沫离 on 2018/9/11.
//  Copyright © 2018年 苏沫离. All rights reserved.
//

#import "AppDelegate.h"
#import "AVCaptureViewController.h"
#import "AVCaptureLowVersionViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    [self.window makeKeyAndVisible];
    
    if (@available(iOS 10.2, *)) {
        UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:[[AVCaptureViewController alloc]init]];
        self.window.rootViewController = nav;
    } else {
        UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:[[AVCaptureLowVersionViewController alloc]init]];
        self.window.rootViewController = nav;
    }


    
    return YES;
}

@end
